// vite.config.ts
import { defineConfig } from "file:///E:/front%20end/%E5%8D%9A%E5%AE%A2/node_modules/vite/dist/node/index.js";
import vue from "file:///E:/front%20end/%E5%8D%9A%E5%AE%A2/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import { resolve } from "path";
import AutoImport from "file:///E:/front%20end/%E5%8D%9A%E5%AE%A2/node_modules/unplugin-auto-import/dist/vite.js";
import Components from "file:///E:/front%20end/%E5%8D%9A%E5%AE%A2/node_modules/unplugin-vue-components/dist/vite.js";
import { ElementPlusResolver } from "file:///E:/front%20end/%E5%8D%9A%E5%AE%A2/node_modules/unplugin-vue-components/dist/resolvers.js";
import { createSvgIconsPlugin } from "file:///E:/front%20end/%E5%8D%9A%E5%AE%A2/node_modules/vite-plugin-svg-icons/dist/index.mjs";
var __vite_injected_original_dirname = "E:\\front end\\\u535A\u5BA2";
var getUrl = (url) => resolve(__vite_injected_original_dirname, url);
var vite_config_default = defineConfig(({ mode }) => {
  if (mode === "development") {
    return {
      plugins: [
        vue(),
        AutoImport({
          resolvers: [ElementPlusResolver()]
        }),
        Components({
          resolvers: [ElementPlusResolver()]
        }),
        createSvgIconsPlugin({
          // 指定 SVG图标 保存的文件夹路径
          iconDirs: [resolve(process.cwd(), "src/assets/icons")],
          // 指定 使用svg图标的格式
          symbolId: "icon-[dir]-[name]"
          /**
           * custom insert position
           * @default: body-last
           */
          // inject?: 'body-last' | 'body-first'
          /**
           * custom dom id
           * @default: __svg__icons__dom__
           */
          //  customDomId: '__svg__icons__dom__',
        })
      ],
      resolve: {
        alias: {
          "@": getUrl("./src")
        }
      },
      css: {
        preprocessorOptions: {
          scss: {
            additionalData: `@import "./src/assets/styles/global.scss";`
          }
        }
      }
    };
  }
  return {
    plugins: [
      vue()
    ]
  };
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBb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